#include <REGX52.H>
#include"I2C.h"
#define  add      0xA0
void WRITE_BITY(unsigned char biteadd,date)
{
	I2C_START();
	I2C_SENDBITY(add);
	reciveack();
	I2C_SENDBITY(biteadd);
	reciveack();
	I2C_SENDBITY(date);
	reciveack();
	I2C_STOP();
	
	
	
}
unsigned char RCE_BITY(unsigned char eadd)
{
	unsigned char date=0;
	I2C_START();
	I2C_SENDBITY(add);
	reciveack();
	I2C_SENDBITY(eadd);
	reciveack();
	I2C_START();
	I2C_SENDBITY(add|0x01);
	reciveack();
	date=I2C_RECIVEBITY();
  sendack(1);
	I2C_STOP();
  
	return date;
	
	
}